package _3_0.pojo;

//编写实体类

//实体类的包名一般会采用 // pojo // entity	// domain 来命名


public class Student {
	
	// 字段名 和数据库中对应
	private int id;
	private String name;
	private int chinese;
	private int math;
	private int english;
	private int classesId;
	
	// 如果数据库中字段名是stu_name  在在类中采用 stuName;
	// classes_id	          在类中 classesId;
	
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getChinese() {
		return chinese;
	}
	public void setChinese(int chinese) {
		this.chinese = chinese;
	}
	public int getMath() {
		return math;
	}
	public void setMath(int math) {
		this.math = math;
	}
	public int getEnglish() {
		return english;
	}
	public void setEnglish(int english) {
		this.english = english;
	}
	public int getClassesId() {
		return classesId;
	}
	public void setClassesId(int classesId) {
		this.classesId = classesId;
	}
	public Student(int id, String name, int chinese, int math, int english, int classesId) {
		super();
		this.id = id;
		this.name = name;
		this.chinese = chinese;
		this.math = math;
		this.english = english;
		this.classesId = classesId;
	}
	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", chinese=" + chinese + ", math=" + math + ", english="
				+ english + ", classesId=" + classesId + "]";
	}
	
	

	
	

}